package edu.whut.mall.common.constant;



/**
 * Author: smq
 * Unit: D9lab
 * Date: 2021-07-03 11:09
 * Description: 小程序、app以及商户的默认配置
 */
public class WxPayConstant {

    private WxPayConstant() {
    }

    /**
     * 嫦娥抗衰微信商户账号
     */
    //嫦娥App服务号相关
    public static final String CHANGE_APP_APPID = "wxdc7b93e54199dae2";
    //嫦娥app密钥
    public static final String CHANGE_APP_APPSECRET = "e34a7c574ee59b1f29e68fe78861f6c9";
//    public static final String CHANGE_APP_APPSECRET = "8bc31d14e7fd03fe34d1259358c2fa4a";

    //小程序App服务号相关
    public static final String CHANGE_MINIPROGRAM_APPID = "wx324f4b6595a53e86";
    //小程序密钥
    public static final String CHANGE_MINIPROGRAM_APPSECRET = "8bc31d14e7fd03fe34d1259358c2fa4a";
//    public static final String CHANGE_MINIPROGRAM_APPSECRET = "e34a7c574ee59b1f29e68fe78861f6c9";

    //商户号相关
    //旧密钥:whutd9lab6666666changechange2018
    public static final String CHANGE_KEY = "V8agnmSwGVYCCBjrkWch9s0VzX1VRDxU";
    //商户号, 旧商户号:1512823821
    public static final String CHANGE_MCHID = "1508902251";


    /**
     * 微信支付证书相对地址（推荐使用）
     */
    public static final String CHANGE_CERT_PATH="change_cert/apiclient_cert.p12";

    public static final String CHANGEBUY_CERT_PATH="changebuy_cert/apiclient_cert.p12";


    /**
     * 微信支付URL
     */
    public static final String DOMAIN = "/*https://*/i-test.com.cn";

    public static final String WITHDRAW_BASE_URL = "https://api.mch.weixin.qq.com/mmpaymkttransfers/promotion/transfers";

    public static final String URL_UNIFIED_ORDER = "https://api.mch.weixin.qq.com/pay/unifiedorder";

    public static final String URL_ORDER_QUERY = "https://api.mch.weixin.qq.com/pay/orderQuery";


    /**
     * 其他配置参数
     */

    public static final String resSuccessXml = "<xml><return_code><![CDATA[SUCCESS]]></return_code><return_msg><![CDATA[OK]]></return_msg></xml>";

    public static final String FIELD_SIGN = "sign";

    public static final String WXPAY_REDIS_PREFIX="wxpay:";

}

